
public class VisaAdapter implements ICCAdapter {
	
	private double amount;
	private String password = "1234";
	private int[] cardInfo = new int[3];
	
	public VisaAdapter (double amountTendered) {
		amount = amountTendered;
		cardInfo[0] = 1;
	}
	public double getAmount () {
		return amount;
	}
	public String getPassword () {
		return password;
	}
    @Override
    public void changeAmount (double cost) {
        amount -= cost;
    }
    public int[] getCardInfo (){
    	return cardInfo;
    }
}
